#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :GetYesterday_27.py
# @Time      :2020/6/23 9:39
# @Author    :Administrator
import datetime


def getYesterday():
    today = datetime.date.today()
    oneday = datetime.timedelta(days=1)
    yesterday = today - oneday
    return yesterday


print(getYesterday())
